<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
 <link href="/erp/assets/css/bootstrap.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="/erp/css/style.css"/>
        <link href="/erp/assets/css/codemirror.css" rel="stylesheet">
        <link rel="stylesheet" href="/erp/assets/css/ace.min.css" />
        <link rel="stylesheet" href="/erp/font/css/font-awesome.min.css" />
		<link href="/erp/assets/css/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="/erp/css/style.css"/>
		<link href="/erp/assets/css/codemirror.css" rel="stylesheet">
		<link rel="stylesheet" href="/erp/assets/css/ace.min.css" />
		<link rel="stylesheet" href="/erp/assets/css/font-awesome.min.css" />
        <!--[if lte IE 8]>
		  <link rel="stylesheet" href="/erp/assets/css/ace-ie.min.css" />
		<![endif]-->
		<script src="/erp/js/jquery-1.9.1.min.js"></script>
        <script src="/erp/assets/js/bootstrap.min.js"></script>
		<script src="/erp/assets/js/typeahead-bs2.min.js"></script>
		<script src="/erp/assets/js/jquery.dataTables.min.js"></script>
		<script src="/erp/assets/js/jquery.dataTables.bootstrap.js"></script>
        <script src="/erp/assets/layer/layer.js" type="text/javascript" ></script>
        <script src="/erp/assets/laydate/laydate.js" type="text/javascript"></script>
        <script src="/erp/js/displayPart.js" type="text/javascript"></script>
<title>仓库转移</title>
</head>

<body>
<div class="margin clearfix">
 <div class="Shops_Audit">
    <!---->
      <div class="border clearfix"> <span class="l_f"> <a href="javascript:;" id="property_add" class="btn btn-warning"><i class="icon-plus"></i>移库操作</a>  </span> </div>
      <!---->
   
   <!--申请列表-->
   <div class="audit_list">
    <table class="table table-striped table-bordered table-hover" id="tableAll">
		<thead>
		 <tr>
		    <th width="80px">序号</th> 
			<th width="80px">移库单号</th> 
			<th width="80px">移出仓库</th>  
			<th width="80px">移入仓库</th>    
			<th width="100">转移商品</th>        
			<th width="100">转移数量</th>
			<th  width="80px">移库原因</th>
			<th width="100">移库负责人</th>
			<th width="100">联系电话</th>
			<th width="200px">移库时间</th>
			</tr>
		</thead>
    </table>
	   <input type="hidden" id="hidden">
   </div>
 </div>


</div>
</body>
</html>
<script>
    // <!--数据显示-->
    $(function () {
        var oTable1 = $('#tableAll').DataTable({
            "serverSide": true,     // true表示使用后台分页
            ajax: {
                "url": "/io-move/all",  // 异步传输的后端接口url
                "type": "POST",  // 请求方式
				data: function (d) {
					var param = {};
					param.draw = d.draw;
					param.start = d.start;
					param.length = d.length;
					return param;//自定义需要传递的参数。
				}
            },
            "bStateSave": true,//状态保存
            'autoWidth': true,
            "columns": [
                {
                    "data": "id"
                },
                {"data": "moveId"},
                {"data": "rname"},
                {"data": "mname"},
                {"data": "commodityName"},
                {"data": "monveCount"},
                {"data": "cause"},
                {"data": "principal"},
                {"data": "phone"},
                {"data": "time"}
            ]
        });

		//刷新
		$('#hidden').on('click', function () {
			console.log("test");
			oTable1.ajax.reload();
		})

        //移库操作界面
        $('#property_add').on('click', function () {
            console.log("xxx")
            layer.open({
                type: 2,
                title: '添加移库',
                shadeClose: true,
                shade: false,
                maxmin: true, //开启最大化最小化按钮
                area: ['1500px', '600px'],
                content: '/warehouse/move/add_movePage',
            });
        });

        //查询详情
        $('.property_list').on('click', function () {

        });
    })


</script>
